Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

854 jdk17 visibility #855

Merged
merged 3 commits into from
Oct 6, 2023
Merged

854 jdk17 visibility #855

merged 3 commits into from
Oct 6, 2023

Conversation

lhazlewood
Copy link
Contributor

Closes #854.

  • Replaced ByteArrayInputStream reflection with new BytesInputStream implementation. The reflection is what required --add-opens java.base/java.io=jjwt.api on JDK 17+.

  • Refactored KeysBridge to perform our own key length logic instead of delegating to sun.security.util.KeyUtil. The reflection is what required --add-opens java.base/sun.security.util=jjwt.api on JDK 17+

  • Removed AddOpens.java due to above refactoring (no longer needed).

- Replaced ByteArrayInputStream reflection with new BytesInputStream implementation. The reflection is what required --add-opens java.base/java.io=jjwt.api on JDK 17.
- Replaced ByteArrayInputStream reflection with new BytesInputStream implementation. The reflection is what required --add-opens java.base/java.io=jjwt.api on JDK 17+.
- Refactored KeysBridge to perform our own key length logic instead of delegating to sun.security.util.KeyUtil.  The reflection is what required --add-opens java.base/sun.security.util=jjwt.api on JDK 17+
- Removed AddOpens.java due to above refactoring (no longer needed).
@lhazlewood lhazlewood added this to the 0.12.2 milestone Oct 6, 2023
@lhazlewood lhazlewood self-assigned this Oct 6, 2023
- Replaced ByteArrayInputStream reflection with new BytesInputStream implementation. The reflection is what required --add-opens java.base/java.io=jjwt.api on JDK 17+.
- Refactored KeysBridge to perform our own key length logic instead of delegating to sun.security.util.KeyUtil.  The reflection is what required --add-opens java.base/sun.security.util=jjwt.api on JDK 17+
- Removed AddOpens.java due to above refactoring (no longer needed).
- Returned a test-only --add-opens for sun.security.util for 3 test cases (added to test.addOpens maven property)
@lhazlewood lhazlewood merged commit a7d3d31 into master Oct 6, 2023
19 checks passed
@lhazlewood lhazlewood deleted the 854-jdk17-visibility branch October 6, 2023 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.reflect.InaccessibleObjectException when using parseUnsecuredClaims() v0.12.1 Java 17
1 participant